namespace MappingGenerator.Formatting
{
    public class DbObjectNameFormatter : IDbObjectNameFormatter
    {
        
        public DbObjectNameFormatter()
        {
            
        }

        public StringFormatter ColumnNameConverter { get; set; }
        public StringFormatter TableNameConverter { get; set; }

        public string EntityName(TableInfo table)
        {
            if (null == ColumnNameConverter)
                return table.Name;
            return TableNameConverter.Convert(table.Name);
        }

        public string MemberName(ColumInfo column)
        {
            if (null == ColumnNameConverter)
                return column.Name;
            return ColumnNameConverter.Convert(column.Name);
        }
    }

    
}